package com.tanhua.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tanhua.model.domain.Analysis;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface AnalysisMapper extends BaseMapper<Analysis> {
    @Select("SELECT record_date,num_registered ,num_active ,num_login ,num_retention1d FROM tb_analysis_by_day WHERE record_date BETWEEN #{sd} AND #{ed}")
    List<Analysis> getDay(@Param("sd") String sd, @Param("ed") String ed);
}
